package com.atguigu.gmall.search.vo;

import lombok.Data;

import java.util.List;

@Data
public class QueryParamVo {

    //数据类型使用包装类型，因为包装类默认值是null,而基本数据类型默认值是0,不好判断这个0是前端传过来的还是默认值
    //http://localhost:18086/search?keyword=手机&brandId=1,2&cid=225&priceFrom=2000&priceTo=6000&sort=2&store=true&props=4:8G-12G&props=5:128G-256G


    private String keyword;
    private List<Long> brandId;
    private Long cid; //categoryId
    private Double priceFrom; //价格区间低点
    private Double priceTo;  //价格区间高点
    private Integer sort = 0;//0默认排序  1价格升序  2价格降序  3上架时间降序  4销量排序
    private Boolean store;
    private List<String> props;//检索属性选择的内容 4:8G-12G    5:128G-256G
    private Integer pageNum = 1;
    private Integer pageSize = 20;

}
